<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>passive 修饰符</title>
  <style>
    .zone{
      background-color: silver;
      width: 120px;
      height: 150px;
      overflow: auto;
    }
  </style>
</head>
<body>
<div id="app">
  <ul class="zone" @wheel="wheel">
    <li>0</li>
    <li>1</li>
    <li>2</li>
    <li>3</li>
    <li>4</li>
    <li>5</li>
    <li>6</li>
    <li>7</li>
    <li>8</li>
    <li>9</li>
  </ul>

  <br>

  <ul class="zone" @scroll="wheel">
    <li>0</li>
    <li>1</li>
    <li>2</li>
    <li>3</li>
    <li>4</li>
    <li>5</li>
    <li>6</li>
    <li>7</li>
    <li>8</li>
    <li>9</li>
  </ul>


  <br>
  <ul class="zone" @wheel.passive="wheel">
    <li>0</li>
    <li>1</li>
    <li>2</li>
    <li>3</li>
    <li>4</li>
    <li>5</li>
    <li>6</li>
    <li>7</li>
    <li>8</li>
    <li>9</li>
  </ul>
</div>
<script type="module">
  import {createApp} from "../../../../../js/vue.esm-browser.js";

  const app = createApp({
    setup(){
      function   wheel(event){
        console.log(event);
      }
      return {wheel}
    }
  })

  app.mount("#app")
</script>
</body>
</html>